package com.lyEducation.services.base;

import com.lyEducation.core.base.BaseCodeService;
import com.lyEducation.entities.base.BaseCodeEntity;
import com.lyEducation.repository.base.BaseCodeRepository;
import org.springframework.beans.factory.annotation.Autowired;

public abstract class BaseCodeServiceImpl<X extends BaseCodeEntity> extends BaseDateServiceImpl<X>
    implements BaseCodeService<X> {
  @Autowired protected BaseCodeRepository<X> baseCodeRepository;

  @Override
  public boolean isExistCode(String code, String id) {
    return baseCodeRepository.isExistCode(code, id);
  }
}
